-- GENERATED SPELL FOR [Cosmowrench Bruiser] --


function spell0_22494(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(12024,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22494', 5270, 1)
end

function Sorts_22494(pUnit, Event)
local choix_sorts_22494 = math.random(0, 0)
if choix_sorts_22494 == 0 then
pUnit:RegisterEvent('spell0_22494', 1, 1)
end
end

function mob22494_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22494', math.random(1500, 3000), 1)
end

function mob22494_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22494_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22494_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22494, 1, 'mob22494_Action')
RegisterUnitEvent(22494, 2, 'mob22494_Leave')
RegisterUnitEvent(22494, 3, 'mob22494_Kill')
RegisterUnitEvent(22494, 4, 'mob22494_Die')
